package com.flyme.module.base.client.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyme.common.core.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author flyme
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@TableName("sys_message")
@ApiModel(value = "消息")
public class SysMessage extends BaseEntity {

    @ApiModelProperty(value = "标题")
    private String messageTitle;

    @ApiModelProperty(value = "内容")
    private String messageContent;

    @ApiModelProperty(value = "消息类型")
    private Integer messageType;

    @ApiModelProperty(value = "新账号推送")
    private Boolean createSend;

    @TableField(exist = false)
    @ApiModelProperty(value = "发送范围")
    private Integer range;

    @ApiModelProperty(value = "新闻排序")
    private Integer sortOrder;

    @ApiModelProperty(value = "新闻图片")
    private String newsImg;

    @ApiModelProperty(value = "新闻摘要")
    private String summary;

    @TableField(exist = false)
    @ApiModelProperty(value = "发送指定用户id")
    private Long[] userIds;

    @ApiModelProperty(value = "发送状态")
    private Integer sendStatus;

    @ApiModelProperty(value = "发送类型")
    private Integer sendType;

    @ApiModelProperty(value = "发送时间")
    private String sendTime;
}